<html>
<head>
<title>hello world</title>
</head>
<!-- this is for the comment, body paragraph is for your code-->
<body>
<script type="text/javascript">
function doRun(){

		document.write("this is a function");

}
// calling the function
var hello = function(){
	document.write("hello guys");
	}

doRun();

	document.write("the result is: "); // this is how you print out the output in javascript
	alert("hello world"); // to pop out a window/output
	alert("lets do a calculator");
	
	var number1; // declare a variable
	var number2;
	
	var number1=prompt("enter the first number") // for the input
	var number2=prompt("enter the second number") // for the input
	var input1=prompt("what operation do you want: ") // for the input
	if (input1 == 'multiplication'){ // if else statement
			input1 = number1*number2
			document.write(input1);
			
			
		}
	else if (input1 == 'division'){
		input1 = number1/number2;
		document.write(input1);
		}
	else if (input1 == 'addition'){
		input1 = number1+number2;
		document.write(input1)
		}
	else if (input1 == 'substraction'){
		input1 = number1-number2;
		document.write(input1)
		}
	var cont=prompt("do you want to continue or not: ")
	if (cont == 'yes'){
	
	//************************************************************************************************************************************
	//to declare function                                                                                                                *
	//function do something(<parameters>){                                                                                               *
		// code                                                                                                                          *
	//}                                                                                                                                  *
	// calling the function                                                                                                              *
	//                                                                                                                                   *
	//do something(parameters);                                                                                                          *
	//                                                                                                                                   *
	//to return things                                                                                                                   *
	//function return Something(<parameters>){                                                                                           *
	//code                                                                                                                               *
	//return value;                                                                                                                      *
	//}                                                                                                                                  *
	//************************************************************************************************************************************
	
	
	
	//for the input
	//var input=prompt("title of popout","label tag")
	
	// to declare a varibale
	
	
	


</script>
<!-- ask user if want to use numbers
	ask user if want to use lower case
	ask user if want to user upper case
	ask user for length of password
	from possible generate password
	return boolean -> var nam_fly=confirm("will contain number?"); -->






</body>


</html>
